Labour’s historic defeat: learning the right lessons