US firm B&G Foods has recorded an increase in full-year profits, boosted by acquisitions and price increases in 2012.