The global smartphone market declined for the first time as major countries like China continue to mature, according to a report.