Ferrari have announced that one of their drivers has joined another racing team with immediate effect.