The personal information of a million individuals was leaked online following a ransomware attack that in June hit NHS hospitals in London.