Diageo has agreed a deal to take full control of UB Group's South African sorghum beer business, United National Breweries (UNB).