Equation of state of hadron resonance gas and the phase diagram of strongly interacting matter