A hospital trust has declared a critical incident and is urging patients to only come to its a&e department if their condition is life threatening.