Kimi Raikkonen will leave Ferrari to join Sauber in 2019.