Iranian officials have confirmed reports that multiple cyber attacks had been carried out against at least two government agencies.