Railways has incurred losses to the tune of Rs 36.87 crore due to agitations: Govt