Court orders former President Nasheed be confined to Male