Householders are to be offered long-term loans to help make their homes more energy efficient and cut bills under a new government scheme.