Glass transition in granular media