Apple says hackers may have exploited security flaws on iPhone, iPad, and Macs