STATIC QUARK-ANTIQUARK POTENTIAL IN QCD TO THREE LOOPS