Reagan didn't get rid of all of the tax shelters. But the idea that tax havens (i.e. tax shelters) are relatively crummy investments remains.
The reason Apple, etc., invest a lot of their cash overseas is not because those are better investments, but because the US corporate taxes are so much higher those foreign investments become more attractive.
Level the taxes, and the money will be reinvested back in the US.