Thermal Instabilities in the Warm Interstellar Gas as a Regulating Mechanism of Star Formation