Tesla’s global sales rose 2.3% in the fourth quarter after a sluggish start to the year that contributed to the electric car company’s first year-on-year sales decline since at least 2015.