Votes are being counted in parts of Uganda amid an internet shutdown and opposition accusations of rigging in presidential and parliamentary elections.