Children learn about group-based preference and status from agents' patterns of social selection