A cannabis farm in Bedale, North Yorkshire, worth around £400,000 has been dismantled by police.