Protests have erupted across Turkey over the jailing of Istanbul's Mayor Ekrem Imamoglu, a move critics deem anti-democratic.