The Impact of Educational Attainment and Grade Retention on the Development of Intelligence