Braids and invariant metrics on groups of area-preserving diffeomorphisms of surfaces