An analytical model based on strain localisation for the study of size-scale and slenderness effects in uniaxial compression tests