A man who died after bravely going to the aid of a group of swimmers caught in a rip current off a Cork beach has been hailed as a hero.