AG Barr has posted a slight dip in pretax profits for the six months to 30 July.