Active children perform better at primary school, research finds