GMAC's ResCap mortgage unit to cut 3,000 jobs