A decline in costs helped push AG Barr's profits up double-digits last year despite a slight fall in sales.