The retail group warns on profits as John Lewis managing director Paula Nickolds steps down.