Apple's iPhone revenue growth is slowing, with headwinds from a mature smartphone market and higher competition from China.