Police have launched an investigation after a British woman was found dead in a Sri Lanka hostel - with a court ordering it shut.