The Welsh government's initial response to Covid was "inadequate", with ministers in Cardiff "overly reliant" on the UK government to take the lead, according to the public inquiry into the pandemic.