Australia beat England by two wickets to win 1st Test