A shipment of cotton has become the first physical commodity to be traded and settled by banks using a blockchain-based smart contract system.