Apple reports slumping iPhone sales as global demand weakens