RBS posts first profit in a decade