Directing the self-assembly of soft matter to form moldable therapeutic hydrogels