Ex-MP detained for molestation