Poor medical care blamed for NHS deaths