Rami Hamdallah agrees to form new Palestinian gov't