Barcelona striker David Villa has left hospital after undergoing treatment on kidney stones, the Primera Division leaders have confirmed.