Lamborghini CEO Stefano Domenicali is leaving the Volkswagen Group supercar brand to join Formula One as CEO.