Goldman Sachs posted a rise in first-quarter profit on Monday, as the Wall Street bank benefited from strength in dealmaking and equities trading.