Larger reductions in primary pupil numbers were leading to more schools going into deficit, new research indicated.