The mallard could be pecking at its feet because of hunger and sees the feet as a potential food source. Mallards are also known to be attracted to items that are contrasting to the surroundings. This is a way of showing interest. It could also be due to a condition of the feet. Consult with a vet for further advice.