Newsrooms have five years to embrace artificial intelligence or they risk becoming irrelevant