Former lawyer given community order under new upskirting legislation