Elections are seen as challenge for President Erdogan and his AK Party to retain control of Turkey's major cities.