Generalised geometry for supersymmetric flux backgrounds