Wesfarmers has reached an agreement with the board of Australian retail group Coles for a recommended cash and share takeover offer totalling around AUD$22bn (US$17.7bn) - a deal that will create the country's largest retailer.