President Recep Tayyip Erdogan's conservative Justice and Development Party (AKP) has suffered a significant blow in local elections. Turkey's main opposition party, the Republican People's Party (CHP), claimed victory in key cities, including Istanbul and the capital, Ankara.