Tesla Inc. agreed to recall nearly 363,000 vehicles in the U.S. equipped with its advanced driver assistance system called Full Self-Driving Beta, offering a software update in response to crash-risk concerns tied to…