The U.K.'s Electoral Commission has been hacked by 'hostile actors' who had access to its system and emails unknowingly for over a year, the agency said Tuesday.