The board of Australian retailer Coles Group has accepted an enhanced A$18.2bn ($15bn) takeover bid from diversified conglomerate Wesfarmers.