Hamas, Fatah and 12 other groups agree to hold legislative and presidential elections within one year.