DYFED-Powys Police have accepted they have made a mistake after accidentally disclosing information about sex offenders to a member of the public.