Biden says Afghanistan war was a lost cause, vows to continue aid and diplomacy