The "sharp escalation" in the cost of flour and wheat has forced US snack firm Lance to raise prices, the company has said.