Spin dynamics and spin-glass state in Fe-doped cobaltites