Customers will be able to borrow money from HSBC to pay for solar panels and batteries under a scheme designed to boost take-up of low-emission home upgrades.