Magnetic properties of RE-Ba-Cu oxides in the normal and superconducting states