What can cause depression and deteriorating mental and social skills?

Multiple factors. Depression can be a result of many different factors. For example, significant relationship issues, genetics, conflicts at work, prior abuse, certain medications, death of a loved one, major life events (e.g., moving, losing a job, starting a job), serious illnesses, substance use are all associated with higher rates of depression.