Cut all ties. Stop making friends and lose any sense of empathy you may have at once acquired. You can't get hurt if you can't feel.
Worst advice given ever. I tried that a few years ago, and that resulted in a horrible depression and attempted suicide.

You know why this resulted in such a way? Because you were weak, you are weak.
I however did not cut *all* ties, but I have stopped caring a few years ago. I'm doing great, better than I was before (!).
Now one needs to understand the difference which I did: I like being alone, but I however do not like feeling alone. Once you are unable to feel alone, your problems have been solved.
Stop caring and doing illogical things. I mean there is no logic in doing illogical things is there?
Note: Actually it is up to each individual, where a large number of factors are involved.