Type IIB flux vacua from M-theory via F-theory