Palestinian rivals Fatah, Hamas reach reconciliation deal