The role of emotions in investing and how to keep them in check