Hamas says reached deal with Palestinian rival Fatah