Defining bouts of behaviour: a three-process model