High-school students whose friends get higher marks tend to raise their own grade-point averages over time. Karen Hopkin reports