Man sustains 'life-changing' injuries in sledgehammer attack