A survey of 15-year-olds around the world suggests that the underperformance of boys in education may be linked to gendered cultural attitudes about whether it is important to try hard at school.