A&E services in Scotland have been put on 'red alert' as patients face waits of up to 12 hours outside hospitals.