U.K. drinks company A.G. Barr said higher soft-drinks sales lifted its revenue and pretax profit in fiscal 2025.