Detention of Istanbul’s popular mayor Ekrem İmamoğlu galvanises opposition and leads to stock market plunge