Isolating prostitutes is unsafe, study finds