Berezinskii-Kosterlitz-Thouless phase in two-dimensional ferroelectrics