Weak formulation and first order form of the equations of motion for a class of constrained mechanical systems