The average intelligence of humans has risen 20 IQ points since 1950, a study found.