RBC raises year-end stock market forecast, sees buying opportunity in small caps