Gravitational torques and star formation