Scarlett Johansson has issued a public statement urging US legislators to take swift action to regulate artificial intelligence (AI) technology.