Take a long view, and shares are a lot less risky than many realise