Borgmästaren i Turkiets största stad Istanbul, Ekrem Imamoglu, har gripits av polis.