Assessment of sex differences for multifactorial traits using path analysis: application to learning difficulties