Formula 1 ‘lucky’ to have avoided a ransomware attack