RBC tops estimates as profit surges in capital-markets divis