Ministers will order pharmacists to ration drugs if UK crashes out