A UK dairy cooperative has bought peer Fonterra's stake in a joint venture the two companies set up in 2011.