Istanbul’s popular mayor, Ekrem Imamoglu, was taken into custody earlier this week, rattling markets. The lira, Turkish stocks and debt subsequently posted some of the world’s biggest declines.