Smartphone prices rise as memory costs surge