Thermoreversible Gelation in Solutions of Associative Polymers. 1. Statics