Apple gives cautious sales forecast amid weakness in emerging markets