French President Emmanuel Macron says that a ceasefire deal agreed between Israel and Lebanon should "open the path" for an ending of the war in Gaza.