Magnetic properties of van der Waals ferromagnet $$\hbox {VI}_{3}$$ and $$\hbox {CrI}_{3}$$: a renormalization group approach