Formulation of topical medicaments