Taoiseach Micheál Martin has vowed to identify and hold accountable whoever sent the hoax emails that emptied newsrooms across the capital on Friday morning.