If you've committed an offence, they can require you to prove who you are - so you don't just give them a made up name and address - or face the prospect of being nicked under PACE so they can ascertain your identity. That's my understanding anyway.
The cannot require you to prove who you are, although they may take steps themselves to ascertain that you are who you claim to be.