The South African government has prohibited the sale of cannabis food products, contradicting previous decriminalisation efforts.