More than a third of surgical patients develop complications as a result of their procedure, a new study shows.