Nick Clegg warns against dividing Britain in resignation speech