People were taking drugs in Spain 3,000 years ago, study finds