Optimal consumption with reference to past spending maximum