People on disability, unemployment or carers payments had an average mortality rate nine times higher than those outside the welfare system, a study has found.