Mars had water in recent past: Study