The People’s Bank of China has allowed the yuan to depreciate sharply, sending a shock through currency markets.