Hamas ready for talks with rival