Palestinian factions Fatah, Hamas proclaim reconciliation pact, ending bitter four-year rift.