Feedback mechanisms in animal behaviour