Hamas opens talks with factions