People are being urged not to attend hospitals unless it is essential as a “quad-demic” hits North Yorkshire, putting “significant strain” on the health service.