ConAgra Foods has agreed to buy US private-label firm National Pretzel Co. for an undisclosed sum.