Tesla CEO Elon Musk has announced he will discontinue the brand's Model X and Model S cars as the company pivots towards autonomous robots.