Investment, current account, and the long swings of unemployment