President Erdogan’s arrest of his chief rival has shaken investors’ confidence