Properties of cofinite modules and applications to local cohomology