Hamas said on Wednesday it agreed with Israel to a four-day ceasefire that will see the release of hostages in Gaza in exchange