Model for low- and intermediate-temperature properties of glasses