Hamas has announced it has accepted a ceasefire deal proposed by Egypt and Qatar. Israel has not yet responded.