Andy Murray won his first match as the world's best male tennis player, overcoming Illya Marchenko in three close sets in the first round of the Australian Open.