A 19-year-old man is in a critical condition in hospital after a crash in Ayrshire on Friday.