Demand for the U.S. automaker’s vehicles slid amid stronger competition from Europe and China and rising anger at Elon Musk’s political forays.