Effect of surface grooves on the static friction of an elastic slider