Riot police beat Spanish farmers