Data for South Africa, Ghana and Nigeria published last week show food prices were among the main contributors to headline inflation.