A cyberattack linked to Iran has exposed highly sensitive information about thousands of Israelis and disclosed locations where weapons and ammunition are stored.