Red Bull have confirmed legendary Formula 1 designer Adrian Newey will leave the team in the first quarter of 2025.