On the Harnack inequality for a class of hypoelliptic evolution equations