RBC tops estimates as investment banking revenue hits record