Variational Problems with Symmetries : A Pfaffian System Approach