Wavelet-based adaptive simulations of three-dimensional flow past a square cylinder