Soft drinks group AG Barr has said that growth from its core Irn-Bru brand and a new partnership with Rockstar Energy boosted sales in its first half.