Role of magnetic fields in the evolution of five dark cloud complexes