NHS trust 'failed to investigate hundreds of deaths'