US companies’ love affair with tax havens could help solve a long-running economic mystery