Stress growth and relaxation of dendritically branched macromolecules in shear and uniaxial extension