Apple warns investors, as CEO points to slumping sales in China