Armed police swooped in a busy York street after a report of a person carrying a weapon.