US president-elect Donald Trump has suggested Israel and Hamas could agree a Gaza ceasefire by the end of the week.