B&G Foods booked an increase in full-year sales, which were boosted by acquisitions, but higher costs and expenses related to a product recall dented the bottom line.