Convergence to consensus of the general finite-dimensional Cucker-Smale model with time-varying delays