According to a new study, the average family will pay an extra $3,500 due to inflation