Police will have new powers to seize and detain dogs that have attacked or chased farm animals.