The boom and bust of men’s beard fashions may mirror Darwinian selection, scientists say.