Sebastien Ogier will join the Volkswagen team in the World Rally Championship following his exit from Citroen, the team announced.