The South Korean internet giant posted stronger-than-expected fourth-quarter earnings and record annual revenue, driven by its core search platform and e-commerce businesses.