Galaxy and mass assembly (GAMA): dust obscuration in galaxies and their recent star formation histories