Hamas agrees to Gaza ceasefire proposal, the group's chief says