Gary Lineker will leave Match of the Day at the end of the current season.