Relaxation processes and coercivity in hard magnets