Beijing has emerged as the continent’s biggest bilateral trading partner since the start of the century and has financed billions of dollars worth of large-scale infrastructure projects.