Dealing with high dimensionality for the identification of common and rare variants as main effects and for gene‐environment interaction