Hamas says it has dissolved its government in Gaza and is preparing to transfer power to a U.N.-backed technical committee.