When and why did men begin wearing ties ؟

When and why did men begin wearing ties ؟