Donald Trump has said Israel has agreed on terms for a 60-day ceasefire in Gaza, and is urging Hamas to accept the deal before conditions worsen.