Rise in memory chip costs puts pressure on retailers of laptops and smartphones