A quantity of cannabis was seized in Flintshire after a group of youngsters ran away from a police officer and left it behind.