Robert Mapplethorpe’s floral photographs have their own sex appeal – and they are part of a long tradition of art that equates flowers with the erotic, writes Jason Farago.