The West Australian government will buy a private hospital in Perth’s inner-city suburbs to help ease the burden on the public health system.