Foreign investment in sub-Saharan Africa rose 13% last year to $32 billion, bucking a global downward trend and reversing two years of decline, according to a United Nations report.