RBS agrees £3.6bn settlement with US over mortgage probe