Modelling the effects of confinement on the glass transition temperature and segmental mobility