Log off if you're feeling sad, say researchers