U.S. banks are struggling to keep up with evolving artificial-intelligence technology that has enabled fraudsters to easily impersonate customers and spread malware using AI-generated text, according to a report published Wednesday by the Treasury Department.