Huawei and Xiaomi have launched new flagship foldable smartphones, stepping up competition in the premium handset market.