The relationship between learning mathematics and general cognitive ability in primary school