US warehouse chain BJ's Wholesale Club has reported a 25% increase in second-quarter profit, boosted by strong sales of fresh food.