Deaths of three babies could “realistically” have been avoided, Scottish inquiry concludes