There are no specific laws concerning footwear whilst driving. However, Rule 97 of the Highway Code does state that the clothing and footwear you choose to wear whilst driving should not prevent you from using the controls properly.
Wearing flip-flops could be seen as an infringement of this rule, as your feet may slip and slide whilst wearing them.