Angela Rayner resigns after costly mistake