Lewis Hamilton has recounted how it was a “terrifying” experience when he told Mercedes Formula 1 boss Toto Wolff that he would be leaving to go to Ferrari in 2025.