Wavelet-like collocation method for finite-dimensional reduction of distributed systems