Scottish microbrewer BrewDog has emerged unscathed from a lengthy battle with the drinks industry's self-regulatory body to buck bad times for the UK beer market.