A near-infrared study of the planetary nebula NGC 2346