Raising a child is more expensive in the city—and the extra costs aren’t just for private school tuition and nannies.