Foreign debt rises as private borrowing slows