Franchise Brands buying Barking Mad in first deal since IPO