Justice Minister says controversial grandparents hug advert ‘does not represent the views of government’