Contact symmetries of constrained systems and the associated integrals of motion