Court orders Imamoglu, a key rival to President Erdogan, jailed pending the outcome of a trial on corruption charges.