Self-harming dog who suffered separation anxiety finally finds forever home