Rotational velocities of A-type stars - IV. Evolution of rotational velocities