Non-perturbative gravity, the Hagedorn bounce and the cosmic microwave background