Donald Trump has hailed the dramatic last-minute ceasefire deal a "big day for world peace".