A Turkish court has jailed Istanbul Mayor Ekrem İmamoğlu on corruption charges, accusing him of involvement in a criminal network.