(Reuters) - Goldman Sachs Group Inc will take a $5 billion earnings hit in the fourth quarter due to a new U.S. tax law, the Wall Street bank said in a regulatory filing on Friday.