Derivatives, the shape of international capital flows and the virtues of prudential regulation