Party leader Jeremy Corbyn warned Labour must solve its anti-Semitism problem or be unable to win elections.