Barcodes were first used in shops in the US in 1974 and arrived in the UK five years later but now they are set to be replaced by a new type of QR code