Romanian President Nicusor Dan has vowed to launch an investigation into alleged irregularities in the judiciary.