The interaction of unlearned behaviour patterns and learning in mammals