Sao Tome and Principe's president has dismissed the government over an "inability" to resolve problems facing the tiny West African state and "frequent" absences by the prime minister.