Pro-Iran factions gain ground in Iraq's local elections