Health bosses in North Yorkshire are urging people to phone NHS 111 before going to hospital accident and emergency departments.