New homes to be all-electric from 1 January 2024