Dynamics in ferro- and antiferroelectric phases of a liquid crystal with fluorinated molecules as studied by dielectric spectroscopy