A judge has strongly criticised social services and the police for failing vulnerable young girls who fell victim to sexual exploitation by Asian grooming gangs in Keighley in the 1990s.