How important is the global financial cycle? : evidence from capital flows