Police said they had received reports of a man walking around York Street in Sydney with a knife