Signature of stripe pinning in optical conductivity