Mercedes' Lewis Hamilton said the racist abuse aimed at Real Madrid winger Vinicius Junior evoked painful memories from his own career.