As AI companies snap up memory chips, smartphone and PC makers face higher costs and tighter supply — which could lead to higher prices for consumers.