Businesses may have just months to prepare for catastrophic hacks by AI bots, the Technology Secretary has warned.