Rafael Nadal claimed his sixth Grand Slam title by beating Roger Federer in a five-set final at the Australian Open.