Hamas considered ‘cancelling 7 October’ attack if Israel honoured agreements