Index formulas for hypoelliptic operators and cyclic cohomology