A funeral hearse carrying a coffin has been targeted in a shocking vandalism attack in Edinburgh.