Record numbers of generic drugs for cancer, heart ailments and other conditions have received U.S. approval in recent years, raising hopes that the new competition would reduce high drug costs. But many of the lower-price medicines haven’t hit the market, a Wall Street Journal review found.