Hilbert schemes of points on a locally planar curve and the Severi strata of its versal deformation