Telsa’s revenue and profits tumbled in the fourth quarter, capping off the most difficult year for the electric automaker since it became profitable six years ago.