Struggling retailer and clothing maker American Apparel Inc has managed to stave off a potential bankruptcy filing after securing $14.9m in new financing from a group of Canadian investors.