Spanish police rescued 270 small dogs, many crammed inside cages and in poor health, and arrested five people after raiding two illegal puppy farms on the outskirts of Madrid on Thursday.