Three-time Olympic medallist Katie Archibald has announced her retirement from competitive cycling at age 32 to pursue a career in nursing.