Generalised Scherk-Schwarz reductions from gauged supergravity