Hamas says it will dissolve Gaza government when new Palestinian body takes charge as violence strains ceasefire