Social cognition and the development of rule‐guided behaviour