A study on optimal consumption and portfolio with labour income under inflation