Lewis Hamilton blames F1 rules for Baku near-miss