Cosmological singularities and analytical solutions in varying vacuum cosmologies