Apple is encouraging people to update their iPhones in light of new research that has pointed to vulnerabilities in older versions of the iOS operating system.