Apple will raise prices across its product lineup due to soaring memory chip costs, CEO Tim Cook says.