Foreign Cash: Taxes, Internal Capital Markets, and Agency Problems