Mechanical and optical manipulation of porphyrin rings at the submicrometre scale