EU to invest $5bn in South Africa after US aid withdrawal