Global investment into energy storage technologies including batteries is set to reach $1.2trn by 2040 as technology costs fall, according to new research by Bloomberg New Energy Finance (BNEF).