Factors associated with COVID‐19 related hospitalisation, critical care admission and mortality using linked primary and secondary care data