Israel and Hamas agree on a ceasefire deal to release hostages and allow humanitarian aid into Gaza, pending final details from negotiations.