Hamas agrees with Fatah in Cairo