USA beat Australia in basketball to reach final