Hostess Brands LLC, the maker of Twinkies and Ding Dongs, said an affiliate of private equity firm Gores Group will buy the company in a $725 million deal and take it public.