‘Tommy McCourt’s political mindset shaped by inequalities he witnessed in Derry’s Bogside’, mourners told