The deaths of three prisoners who contracted Covid-19 while behind bars will be investigated with a Fatal Accident Inquiry.