The deaths of three newborn babies could have been avoided if "reasonable precautions" had been taken, an inquiry has found.