Apple announced an increase in prices for Macs and iPads, citing a memory chip shortage brought on by the artificial intelligence boom.