Across Europe, banks are trying to figure out how to handle a growing risk lurking in residential mortgage portfolios: energy consumption.