Investing your time in building habits can stop you from ruminating on everyday decisions.