Secondary schools 'fail brightest children'