Bain Capital has agreed to buy Varsity Brands, the owner of BSN Sports and Indianapolis-based Herff Jones, in a deal estimated at $2.5 billion.