The rotation of galaxies: numerical investigations of the tidal torque theory