Finiteness of local cohomology modules over rings of small dimension