US President Donald Trump said that an agreement on the full disarmament of Hamas and other groups in the Gaza Strip had been reached.