Apple earnings show record revenue despite slowing iPhone growth