Pressure from Donald Trump pushed Hamas to agree to major concessions to expedite a ceasefire, as hopes grow for a truce between Israel and the militant group.