US president congratulates Iran and Israel on ceasefire deal, but neither country has confirmed agreement to end war.