Freezing temperature in disordered ferroelectrics