Optimal reinsurance under dynamic VaR constraint