DIAMONDS: A new Bayesian nested sampling tool - Application to peak bagging of solar-like oscillations