For years, Starbucks was the dominant coffee chain in China. Now rivals offering local flavors and cheaper prices are crushing the company’s bottom line in its second-largest market.