Hamas ‘very close to an agreement’ with Israel while key sticking points remain, official says