US President Joe Biden says Israel and Lebanon have agreed to a ceasefire deal to end fighting with Hezbollah in Lebanon.