AG Barr has posted a slight lift in operating profit for the six months to the end of July, despite the poor summer weather in the UK.