Cohen-Macaulay and Gorenstein path ideals of trees