Beijing has claimed data from funeral homes and prisons increased the total number of deaths in the city to almost 4,000.