Nuclear rotations studied by the time-dependent variational method