As devices from toys to cars get smarter at the Consumer Electronics Show, gadget makers are grappling with a shortage of memory and storage needed for them to work.