Humans have grown crops in areas of the Amazon since the end of the last ice age, a study says.