Finite-time stability and stabilisation for a class of nonlinear systems with time-varying delay