Fashion retailer AllSaints has been acquired by two private equity firms in a rescue package that saves the chain from collapse and secures hundreds of jobs.