Mænd har markant større risiko for at få 24 ud af 35 kræftformer sammenlignet med kvinder, viser studie.