Parts of Spain have introduced measures aimed at limiting numbers of tourists, following widespread protests last year.