Gold prices have risen as the US dollar has weakened for a second straight day following a global cyber attack and a delay to US healthcare legislation that fuelled doubts about President Donald Trump's ability to pass measures expected to boost the economy.