Germany announced plans on Monday to close most shops, limit restaurants’ opening hours and ban religious services to try to slow the spread of the coronavirus.