Gopakumar-Vafa invariants and Hilbert schemes of points on a locally planar curve