Ferromagnetic vacuum and galactic magnetic fields