Anisotropic magnetoresistance in thin inhomogeneous gold films