T. Rowe Price Associates Inc. sold roughly 81% of its shares of Tesla Inc. over the first three months of the year, marking a sharp retreat for a firm that for years had been one of the electric-car maker’s biggest investors.