Retarded Functional Differential Equations on Manifolds and Applications to Motion Problems for Forced Constrained Systems