Malaysian state closes mosques to stem virus spread