Britain's biggest supermarket Tesco said it would buy the country's largest cash and carry wholesale supplier Booker.