I'm going to tell you exactly what to do. I promise it will work.
Go to the local psychiatric hospital and explain your situation. Tell them all of your problems and that you don't have a place to stay. It's illegal for a psychiatric hospital to release a homeless person back into the streets so they will have to take you in until THEY FIND YOU A PLACE TO STAY.
At first they'll ask if you want to move into a group home or an assisted living facility. Say, "No, I want my own apartment". They will go over your finances and savings and help you get on your feet.
They will set you up in section 8 housing and help you get on food stamps and welfare if you need it.
The whole thing might take a month or maybe longer, so you'll be in a psych ward the whole time, but they'll separate you from the real crazy people because you're not really crazy, you're just homeless in a bad situation.
I know it works because I went through the whole thing a few years ago.