Growing tensions between the U.S. and China are contributing to Apple losing market share among Chinese consumers.