AG Barr has acquired UK-based cocktail mixers and syrups firm Funkin in a deal worth GBP21m (US$31.5m).