UK soft drinks group AG Barr has reported a 10% rise in full-year underlying profits despite a year of sluggish sales.