US opted for diplomacy over hacking to curb Iran cyberattacks in 2012