Investment and wealth manager M&G is to exit the digital platform market and will merge its life and wealth divisions in a major shake up for the company.