Wal-Mart is to close its Sam's Club stores in the Canadian province of Ontario.