On a class of nonlinear elliptic problems with obstacle