A chain reaction touched off by the coronavirus pandemic has pushed new-vehicle prices to record highs and dramatically driven up the cost of used ones.