Donald Trump is guarded about prospects for the truce, even as he takes credit for pressuring Hamas and Israel into the ceasefire agreement.