Ergodic skew product transformations on the torus