Evolution of planetesimal velocities