Blood testing people at high risk of lung cancer could reduce the number of deaths, a study has found.