HSBC has said banks need to stop penalising clients with large carbon footprints amid a wider backlash against green finance.