Ferrari have confirmed Carlos Sainz will replace Sebastian Vettel for the 2021 Formula One season, while Daniel Ricciardo will join McLaren.