People are being urged to avoid A&E if possible as the NHS is struggling to cope with a surge in demand