Labour leader Jeremy Corbyn has hailed Fidel Castro as "a massive figure in the history of the whole planet", following news of the former Cuban leader's death.