How to Leverage Diverse Demonstrations in Offline Imitation Learning