Step 1: Examine Statement I.
Political parties play an important role in building public opinion. They organise public meetings, election campaigns, awareness programmes and discussions to educate citizens about various national and regional issues. Therefore, Statement I is correct.
Step 2: Examine Statement II.
Political parties that do not form the government perform the role of the opposition. They question government policies, expose mistakes and ensure that the government remains accountable to the people. Hence, Statement II is also correct.
Step 3: Examine Statement III.
Before elections, political parties prepare election manifestos and present their policies and programmes to the public. This helps voters compare different parties before casting their votes. Therefore, Statement III is correct.
Step 4: Examine Statement IV.
Foreign policy is formulated by the government, particularly the Council of Ministers and the Ministry of External Affairs. Political parties may influence foreign policy when they are in power, but framing foreign policy is not considered a general function of political parties. Therefore, Statement IV is incorrect.
Step 5: Final conclusion.
Only Statements I, II and III are correct.
\[
\boxed{\textbf{(A) Only I, II and III are correct.}}
\]