US president says Saudi Arabia, Qatar and UAE pushed for diplomacy as ceasefire talks gain momentum.