Apple urges iPhone and iPad users to update the operating system immediately after security holes ‘may have been actively exploited’