RBC beats profit estimates as capital markets, wealth management shine