Pakistan rallies on Day 1 as Cummins takes 5 wickets for Australia