Gravitational Anomalies and Thermal Hall effect in Topological Insulators