Constraints on decaying dark matter from Fermi observations of nearby galaxies and clusters