Avoiding overfitting in the analysis of high-dimensional data with artificial neural networks (ANNs)