Xiaomi, which made its name by selling online, is getting attacked by upstarts using physical stores to sell smartphones.