Average waits for the procedure varied from 24 days in NHS Lothian last year to 91 days in NHS Ayrshire and Arran.