Israeli and Hamas appear close to reaching a ceasefire deal to wind down the war in Gaza