A British police force has been compromised by criminal gangs.