Children’s motivation and attitudes towards learning play a key role in academic success, study finds