Lewis Hamilton's shock exit from Mercedes to join Ferrari for the 2025 Formula 1 team season and beyond has been formally acknowledged by both teams