The court may grant a temporary or permanent decree of separation for any cause for which a divorce may be decreed.