Glass state in the ferroics with hydrogen bonds