A decade-long boom is ending as consumers hang on to devices for longer