Abbas to head unity government as factions sign agreement