Costs linked to its drawn-out sale to A&P have hit first-half profits at regional US retailer Pathmark.