Resampling-based multiple hypothesis testing