Police on the NSW south coast are investigating an alleged hammer attack that has left a man with a fractured skull and bleeding on the brain.