Hamas rekindles ties with Iran and Hezbollah