Prosecutors accused Huawei of stealing trade secrets from five US companies, including Cisco and T-Mobile, to gain a competitive advantage.