Rome mayor resigns ahead of poll