Ed Miliband is planning to offer grants for solar panels and heat pumps worth up to £13bn in an attempt to create “zero bill” homes.