Study of long-term and storm-time variations in Earth's magnetic field and morphology of geomagnetic storms