Ekrem Imamoglu, Istanbul’s mayor, was jailed on corruption charges Sunday morning, days after being detained by police.