Hamas agrees to ceasefire but 'deal' not acceptable to Israel