Costs from AG Barr's failed merger with rival Britvic has dented the Irn Bru producer's first-half profits, but the group saw sales rise in the period.