The Boston Beer Company is to buy a brewery from Diageo in the US.