Behavioural and ecological consequences of limited attention