A Lancashire man has pleaded guilty to possessing items used in the making of gunpowder and a prohibited firearm.