The influence of social hierarchy on the time budget of cows and their visits to an automatic milking system