Children born into smaller families in the world’s poorest nations live three years longer than those born into larger families, says a study.