Suspects were released under investigation in cases involving domestic abuse, sexual offences and offences against children when conditional bail should have been imposed on them, police and Crown Prosecution Service inspectors have found.