Tesla has announced a recall for several hundred thousand of its vehicles due to a defect with the rearview mirror.