Efficient Markov Chain Monte Carlo sampling for Bayesian inverse problems with covariance matrix adaptation