Royal Bank of Scotland has taken a 3.1 billion pound provision as it prepares to settle claims in the US.