A memory chip shortage is driving up computer prices for consumers, reversing a decades-long drop in hardware costs.