Treasury Secretary Janet Yellen chided China’s government for “unfair” treatment of American and other foreign companies and called on Beijing to return to the pro-market reforms of the past, at the start of her four-day visit to the country.