Private-equity firms Metropoulos & Co. and Apollo Global Management have acquired the snack cake business of Hostess Brands.