Istanbul mayor announces resignation