Tesla is recalling 1.85 million vehicles in the United States due to risk of software failure to detect an unlatched hood, the automaker said