Stanislas Wawrinka has won the Australian Open after beating Rafael Nadal to claim his first Grand Slam title.