Rival Palestinian factions pledge to settle differences in three months