Global Capital Flows and Financing Constraints