Jannik Sinner rallied past Daniil Medvedev in five sets to win the Australian Open and claim his first Grand Slam title.