A study of over one million men shows a link between IQ scores and attempted suicide. Christie Nicholson reports