Smartphone Sales Hit 13-Year Low on Memory Costs; Apple Gains