Bank of America reported better-than-expected first-quarter earnings on the back of strong trading and loan growth.