Cost of raising a child rises more than $310,000 due to inflation