US president disparages agreement struck by former President Trump with Taliban as ‘not very solidly negotiated’.