Australia kept control at the end of a dramatic fourth day of the fourth Test in Melbourne, despite a spirited India charge led by Jasprit Bumrah.