TOKYO (Reuters) - Japan's embattled Toshiba Corp has chosen a group led by U.S. private equity firm Bain Capital to buy its prized memory chip unit, three people with knowledge of the talks said on Wednesday, a last-minute dramatic twist to a highly contentious auction.