The cost of raising a child has soared by more than £36,000 in three years, outpacing both inflation and wage growth.