Mitchell Starc and Josh Hazlewood provided some late resistance as India bowled Australia out to take a 46-run first innings lead in Perth.