Palestinian factions, including Fatah and Hamas, agree to form unity govt after talks in China