Torsional anomalies, Hall viscosity, and bulk-boundary correspondence in topological states