Living in a warzone is linked with an increased risk of heart attack and stroke among civilians, even years after the conflict ends, a study has found.