One in seven operations were cancelled on the day of surgery in a seven-day period in 2017, a study finds.