Every few years our smartphones start coughing and spluttering, and before you know it you’re shopping for a replacement.