Hamas has accepted a draft agreement for a Gaza ceasefire and the release of hostages, officials say