David Gauke, former Conservative justice secretary, has said longer jail terms have been a ‘knee-jerk’ policy response to show government action