NHS must let doctors work more flexibly throughout their careers, says GMC