Goldman profit falls to 3-year low on consumer losses, shares rise on outlook