Hamas has accepted a ceasefire and hostage release agreement, The Independent has been told