A Turkish court jailed Istanbul Mayor Ekrem Imamoglu on Sunday pending trial on corruption charges, in a move that has sparked large protests.