Linear stability of projected canonical curves, with applications to the slope of fibred surfaces