The Yamabe problem for higher order curvatures