Asda has struck a deal to buy the UK stores of discount chain Netto as part of the Wal-Mart arm's bid to run smaller stores in the country.