Four-time Olympic champion Sir Mo Farah upset the odds to be named 2017 BBC Sports Personality of the Year at Liverpool's Echo Arena.