Afghanistan withdrawal ‘exposed the weaknesses’ of the Biden presidency