BrewDog has sold a 23% stake to US private-equity firm TSG Consumer Partners as it looks to add to its global brewing footprint.