Feeling lonely can indeed have an effect on the brain, from possibly making us feel more pessimistic to quicker cognitive decline. Here’s what you should know.