President Donald Trump unveiled a phased agreement for Hamas to disarm and Israeli forces to withdraw from Gaza, following months of stalled negotiations.