Wavelet-Bayesian inference of cosmic strings embedded in the cosmic microwave background