Almost 9000 patients died in Scotland last year before they could reach hospital by ambulance, new figures obtained by Scottish Labour have revealed.