Qatari mediators told Israel that Hamas has “agreed in principle” to resume talks on a new deal to secure the release of around three dozen hostages held in Gaza in return for up to several weeks of a halt in fighting, three Israeli officials said.