UK soft drinks producer AG Barr has reported a rise in both pre-tax profits and sales for the first half, and said it is optimistic about meeting its forecasts for the full year.