Childhood cognitive and socioemotional problems, especially when early or persistent, are associated with poor exam results in adolescence, a UK study finds.