Katie Archibald has retired from cycling after an extraordinary 13-year career that produced 51 medals across Olympic, world, European and Commonwealth competitions.