The effect of environment and stage of the oestrous cycle on the behaviour of dairy cows