Influence of disorder in crystal structure on ferroelectric phase transitions