'Hamas ready to leave Gaza govt'