Hydrodynamics of domain walls in ferroelectrics and multiferroics: Impact on memory devices