Versatile high-pressure apparatus for use at low temperatures and high magnetic fields