Election commission says Duda secured 51.2 percent of vote in runoff election while rival Trzaskowski won 48.8 percent.