Turkish President Recep Tayyip Erdogan's ruling AK Party has lost control of Istanbul after a re-run of the city's mayoral…