UK 'in Afghanistan for long term'