Ekrem Imamoglu, candidate of the main opposition Republican People's Party, celebrated an emphatic victory in the election to become mayor of Istanbul.