Multiplicity of forced oscillations on manifolds and applications to motion problems with one-dimensional constraints