Bitcoin Block Withholding Attack: Analysis and Mitigation