Fortunes could be saved from going down the drain by extracting gold and precious metals from poo, scientists suggest.