Magnetostatic interaction and remanence enhancement in ferromagnets