The country’s fertility rate rose to 2.4 after decades of decline and stagnation, according to a government survey.