Origin of exotic ferromagnetic behavior in exfoliated layered transition metal dichalcogenides MoS2 and WS2