A baby born into a community with high joblessness is more likely to be addicted to opioids, a new study says.