Mayor Ekrem Imamoglu was formally arrested and ordered jailed pending the outcome of a trial on corruption charges