Levels and mechanisms of behavioural variability