Gardaí have launched a murder investigation after a man was fatally stabbed in Cork after going out to buy food for his family.