Sex as a developmental transition: the direct and indirect roles of peers