Apple loses its spot as the world’s top seller of smartphones after tough China competition from brands like Xiaomi and Huawei