Virasoro symmetries of Drinfeld-Sokolov hierarchies and equations of Painlev\'{e} type