Effect of polymer rigidity on the phase behaviour of polymer adsorption on to planar surface