BOSTON/WASHINGTON (Reuters) - Royal Bank of Scotland Group Plc said on Wednesday it had agreed to pay $4.9 billion to resolve a U.S. Department of Justice probe into its structuring and sale of mortgage-backed securities ahead of the 2008 financial crisis.