Divergence of dielectric permittivity near phase transition within ferroelectric domain boundaries