US food group J&J Snack Foods has announced "record" sales and earnings for the third quarter of its fiscal year despite what it called a "difficult economy".