Monopoles and confinement in three dimensions from holography