You have marked symptoms of depression
Do not worry of masturbation
, it never cause any problem.The problems you think are not related with your habit by any means.
So forget and think positive about your life,
Life is full of joy and happiness,enjoy it.
You consult psychiatrist
and take treatment,I assure you you will be 100% alright and you will feel life is worth enjoying and happiness is waiting for you.
Ok and bye.