Medicated foam