Struggling Toshiba announces the sale of its memory chip division to a Bain Capital-led group with investors from Japan, the US and South Korea.