Barroso attacks British PM as he prepares to bow out