Israel has accepted a US-proposed plan for a ceasefire in Gaza, according to the White House, while Hamas says the deal is still "under discussion".