Glasgow University becomes the first in the UK to announce it will sell its shares in companies that produce fossil fuels after pressure from students.