John McDonnell says former Labour MPs who quit party should contest by-election