Wiltshire's Olympic hero Kate French has announced her retirement from the modern pentathlon sport.