Donald Trump has urged Israel and Hamas to agree a ceasefire – as the number of Palestinians killed in Gaza reached 56,500.