Snaking states on a cylindrical surface in a perpendicular magnetic field