Thousands of factories depend on the retailer but rivals are putting pressure on a model based on speed and thin margins