Decades of research show that depression, stress, loneliness, and poor health behaviours can weaken the body's immune system and lowers the effectiveness of certain vaccines.