Labour 'rebuilding red wall', says Wakefield by-election winner