England collapse from 65-1 to 164 all out, leaving Australia needing 205 to win the first Ashes Test in Perth.