Finite element approximation of elliptic control problems with constraints on the gradient