Last-minute dispute in ceasefire talks between Israel and Hamas has been resolved, officials say